#ifndef DEMO_COMMON
#define DEMO_COMMON

#include <cstdio>
#include <ctime>
#include <cmath>

#include <string>
#include <list>
#include <map>
#include <set>

#include <windows.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <DxErr.h>

using std::string;
using std::list;
using std::map;
using std::pair;
using std::set;

#define HR(hr)											\
if(FAILED(hr))											\
{														\
	printf("#%d/0x%X @ Ln[%d] @ \"[%s]\"\n",hr,hr,__LINE__,__FILE__);	\
}

#endif//DEMO_COMMON